using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using TR0217.ControlEx;

namespace WindowsApplication1
{
    public partial class UserControl1 : UserControl
    {
        public UserControl1()
        {
            InitializeComponent();
        }

        private void UserControl1_Load(object sender, EventArgs e)
        {
            ListBoxExItem lvi = new ListBoxExItem();
            lvi.Type = ListBoxExItem.ItemType.CheckBox;
            lvi.Text = "nihao";
            listBoxEva.Items.Add(lvi);
        }

        private void listBoxEva_SelectedIndexChanged(object sender, EventArgs e)
        {
            label.Text = listBoxEva.SelectedItem.ToString();
        }
    }
}
